class User:
    default_name = 'some'
    default_password = 'emos'

    def __init__(self, name: str, password: str):
        try:
            self._name = str(name)
            self._password = str(password)
        except Exception:
            self._name = User.default_name
            self._password = User.default_password

    @property
    def name(self):
        return self._name

    def check_default(self) -> bool:
        return self.name == User.default_name \
               and self._password == User.default_password

    @classmethod
    def set_default(cls, name, pwd):
        cls.default_name = name
        cls.default_password = pwd


user = User('zhangsan', 'san')
print(user.name)
print(user.check_default())
User.set_default('hexin', 'xin')
